<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <!--使用th:text输出-->
    <div th:text="${message}"></div>

    <input type="text" th:id="${student.id}" th:name="${student.name}" th:value="${student.name}"/>

    <!--循环-->
    <table border="1">
        <tr>
            <td>编号</td>
            <td>姓名</td>
            <td>年龄</td>
            <td>生日</td>
        </tr>
        <tr th:each="student:${list}">
            <td th:text="${student.id}"></td>
            <td th:text="${student.name}"></td>
            <td th:text="${student.age}"></td>
            <td th:text="${#dates.format(student.birthday, 'yyyy-MM-dd')}"></td>
        </tr>
    </table>

    <!--取出集合中某一个-->
    <div th:text="${list[0].name}"></div>
</body>
</html>